package spacecraft;

import markgame2d.engine.MarkGame;
import markgame2d.engine.MarkMath;
import markgame2d.engine.MarkSprite;
import markgame2d.engine.interfaces.Collideable;
import markgame2d.engine.interfaces.Updateable;
import markgame2d.engine.mover.MarkConstantCircleMover;
import markgame2d.engine.mover.MarkMover;

public class CraftShield  extends MarkSprite implements Collideable, Updateable{

	SpaceCraft game;
	
	MarkMover circleMover;
	
	public CraftShield(Craft craft, float startAngle) {
		super(craft.x, craft.y, MarkGame.loadImage(GameScreen.MISSILE_FILE));
		game = SpaceCraft.getInstance();
		makeTransparendByCornerColor();
		
		circleMover = new MarkConstantCircleMover(this, craft, 30, MarkMath.PI*1.5f, startAngle);
	}

	public void update(float time) {
		circleMover.move(time);
	}

	public void onColide(Collideable other) {
		
	}
	
}
